home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
tools
/
check_id
/
checkid.doc
next >
Wrap
Text File
|
1996-07-10
|
2KB
|
48 lines
Utility CHECKID
Author: Jon Glazer
Purpose: To provide a meathod of testing for station ID number within batch
files.
Implmentation: The paramaters for CHECKID are possible station ID numbers.
The ID is the PHYSICAL STATION NUMBER found when doing USERLIST/A.
The ID may be specified in decimal format (just the number) or
in HEX format (prefixing a "$" to the number). CHECKID will return
a message if the station number matches one of the parameters and
it will set ERRORLEVEL to parameter number so you may test it within
batch files.
Example: Say you have a couple 386's on your network. Their station numbers
are $1F and $20 (in hex). You may have a TSR you would like loaded
to these stations alone and none of the others (perhaps LOADHI from
Quarterdeck). You can have all of your workstations run a start-up
batch file that will load all of the TSRs. A batch file might look
like this:
CHECKID $1F $20 $3F
IF ERRORLEVEL 3 GOTO SPECIAL
IF ERRORLEVEL 2 GOTO 386LOAD
IF ERRORLEVEL 1 GOTO 386LOAD
GOTO END
:386LOAD
tsr for 386's
:GOTO END
:SPECIAL
another type of computer or instance ($3f)
:END
You may specify any number of parameter in any mixed format of decimal
and hex numbers
CHECKID $1F $20 13 10 2 $6 garbage
CHECKID will accept the first 6 parameters and ignore the last. If
no parameters are specified, CHECKID will just stop.
If "Q" is found on the command line before the station ID is set true,
no message will be displayed so if you specify CHECKID $1F Q $2F, a
a message will be displayed if $1F is found but not for $2F.
You can send comments to me via EasyPlex at 71170,424.